#include <stdio.h>
int main(){
    int num;
    scanf("%d",&num);
    printf("year=%d\n",num/10000);
    if(num/100%100 > 9)
        printf("month=%d\n",num/100%100);
    else
        printf("month=0%d\n",num/100%100);
    if(num%100 > 9)
        printf("date=%d\n",num%100);
    else
        printf("date=0%d\n",num%100);
    return 0;
}
